from flask import Flask,render_template,flash
app =Flask(__name__)

app.config['SECRET_KEY'] = 'sadaghhwqewqe'

@app.route("/")
def hello():
    # 存储消息

    return render_template("file14flash.html")
@app.route("/test")
def test():
    flash("登陆成功")
    flash("登陆成功")

    return "test"
if __name__ == '__main__':
    app.run(debug=True)